//
//  UITabBarController+AutoRotate.m
//  OGL
//
//  Created by ZengYuan on 15/4/15.
//  Copyright (c) 2015年 ZengYuan. All rights reserved.
//

#import "UITabBarController+AutoRotate.h"

@implementation UITabBarController(AutoRotate)

-(BOOL)shouldAutorotate {
    return [self.selectedViewController shouldAutorotate];
}


-(NSUInteger)supportedInterfaceOrientations {
    
    return [self.selectedViewController supportedInterfaceOrientations];
}

- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
    
    return [self.selectedViewController preferredInterfaceOrientationForPresentation];
}
@end
